controllers.controller('HomeCtrl',function($scope,CameraService,TestService) {
  $scope.test = function () {
    TestService.execute().then(function (data) {
      console.log(data);
    },function (error) {
      console.log(error);
    });
  };
  $scope.camera = function () {
    //拍照
    CameraService.getPicture(Camera.PictureSourceType.CAMERA,Camera.DestinationType.DATA_URL).then(function(imageData){
      $scope.imageSrc="data:image/jpeg;base64,"+imageData;
    },function(err){
      //error
    });
  };
});
